From 395eb8c5c63f3314a3eb4551adc7b15e22edc072 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 22 Oct 2009 22:07:05 +0000 Subject: [PATCH] Fix r57997 and r58039 for realz this time --- includes/parser/Parser.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index e398a8566c..7420b9c03b 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3281,16 +3281,16 @@ class Parser $content = strtr($content, array('-{' => '-{', '}-' => '}-')); $output = Xml::escapeTagsOnly( $content ); break; + case 'gallery': + $output = $this->renderImageGallery( $content, $attributes ); + break; case 'math': if ( $this->mOptions->getUseTeX() ) { $output = $wgContLang->armourMath( MathRenderer::renderMath( $content, $attributes ) ); break; } - /* else let a tag hook handle it (bug 21222) */ - case 'gallery': - $output = $this->renderImageGallery( $content, $attributes ); - break; + /* else let a tag hook handle it (bug 21222) */ default: if( isset( $this->mTagHooks[$name] ) ) { # Workaround for PHP bug 35229 and similar -- 2.20.1